package com.spark.util

/**
  * Created by fab.yin on 29/06/2017.
  */

import java.util.Properties
import java.io.{InputStream}

class PropUtil(val file: String) {
  var prop = new Properties()

  def getProp(key: String): String = {
    val ipstream: InputStream = this.getClass.getResourceAsStream("/config.properties")
    prop.load(ipstream)
    prop.getProperty(key)
  }
}
